MongoDB maintenance
End users of the application can delete folders and solutions from DMS. Deleting folders and solutions makes them invisible for the end user, but they still exist in the database. This leaves the option to re-enstate them open. To prevent a growing number of deleted folders and solutions that take up space in the database, you can permanently delete these folders and solutions. Selecting Maintenance on the Options form opens a new dialog where you can use the Cleanup option to delete all selected objects from the database.
This cleanup operation can also be executed via a tool called dmsservermanager, which is supplied with the dms server installer. The call would typically look like this:
- Using integrated authentication: Dmsservermanager.exe cleanup –-dmsurl https://dms.com --integrated
- Specifying the number of solutions and folders to clean at a time (the default value is 1, recommended is a batchsize not exceeding 200. In general, a higher batchsize makes the cleanup faster but with an increased risk of failure): Dmsservermanager.exe cleanup –-dmsurl https://dms.com --integrated --batchsize 100
- Using username / password: Dmsservermanager.exe cleanup --dmsurl https://dms.com -–user “username” --pass “password”
- Using a previously gotten token, e.g. FJSAFJKW#UIYG*UYWSAUUFSDFUIJHWEHFSDJF: Dmsservermanager.exe cleanup --dmsurl https://dms.com -k FJSAFJKW#UIYG*UYWSAUUFSDFUIJHWEHFSDJF
Important It is advised to schedule the cleanup to safe disk space and ensure optimal performance. Currently, there is no way to select folders and solutions, so all folders and solutions marked for deletion will be removed from the database.